package com.jsmtr.rms.entity;

import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Table(name = "DUserEducation")
public class DUserEducation {

    @Id
    @Column(nullable = false, length = 50)
    private String id; // id

    @Column(nullable = false, length = 50)
    private String rid; // 应聘者简历ID

    @Column(nullable = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date starttime; // 开始时间

    @Column(nullable = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endtime; // 结束时间

    @Column(nullable = false, length = 100)
    private String schoolname; // 就读院校

    @Column(nullable = true, length = 100)
    private String majorname; // 专业名称

    @Column(nullable = true, length = 10)
    private String educationcode;  // 学历

    @Column(nullable = true, length = 50)
    private String educationname;  // 学历

    @Column(nullable = true, length = 50)
    private String degreecode;  // 学位

    @Column(nullable = true, length = 50)
    private String degreename;  // 学位

    @Column(nullable = true, length = 50)
    private String tcode; // 毕业形式

    @Column(nullable = true, length = 50)
    private String tname; // 毕业形式

    @Column(nullable = true, length = 50)
    private String fulltime; // 学习形式

    @Column(nullable = true, length = 50)
    private String zscode; // 所获学历证书类型

    @Column(nullable = true, length = 50)
    private String zsname; // 所获学历证书类型

    @Column(nullable = true, length = 50)
    private String remark; //备注

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getRid() {
        return rid;
    }

    public void setRid(String rid) {
        this.rid = rid;
    }

    public Date getStarttime() {
        return starttime;
    }

    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public String getSchoolname() {
        return schoolname;
    }

    public void setSchoolname(String schoolname) {
        this.schoolname = schoolname;
    }

    public String getMajorname() {
        return majorname;
    }

    public void setMajorname(String majorname) {
        this.majorname = majorname;
    }

    public String getEducationcode() {
        return educationcode;
    }

    public void setEducationcode(String educationcode) {
        this.educationcode = educationcode;
    }

    public String getEducationname() {
        return educationname;
    }

    public void setEducationname(String educationname) {
        this.educationname = educationname;
    }

    public String getDegreecode() {
        return degreecode;
    }

    public void setDegreecode(String degreecode) {
        this.degreecode = degreecode;
    }

    public String getDegreename() {
        return degreename;
    }

    public void setDegreename(String degreename) {
        this.degreename = degreename;
    }

    public String getTcode() {
        return tcode;
    }

    public void setTcode(String tcode) {
        this.tcode = tcode;
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    public String getFulltime() {
        return fulltime;
    }

    public void setFulltime(String fulltime) {
        this.fulltime = fulltime;
    }

    public String getZscode() {
        return zscode;
    }

    public void setZscode(String zscode) {
        this.zscode = zscode;
    }

    public String getZsname() {
        return zsname;
    }

    public void setZsname(String zsname) {
        this.zsname = zsname;
    }

    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}